# -*- coding: utf-8 -*-

from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(914, 618)
        MainWindow.setMinimumSize(QtCore.QSize(914, 618))
        MainWindow.setStyleSheet("")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_34 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_34.setObjectName("gridLayout_34")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.groupBox_5 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.horizontalLayout_52 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_52.setObjectName("horizontalLayout_52")
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
        self.label_20 = QtWidgets.QLabel(self.groupBox_5)
        self.label_20.setObjectName("label_20")
        self.horizontalLayout_17.addWidget(self.label_20)
        self.horizontalLayout_21 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_21.setObjectName("horizontalLayout_21")
        self.comboBox_5 = QtWidgets.QComboBox(self.groupBox_5)
        self.comboBox_5.setObjectName("comboBox_5")
        self.comboBox_5.addItem("")
        self.comboBox_5.addItem("")
        self.comboBox_5.addItem("")
        self.comboBox_5.addItem("")
        self.horizontalLayout_21.addWidget(self.comboBox_5)
        self.horizontalLayout_17.addLayout(self.horizontalLayout_21)
        self.horizontalLayout_17.setStretch(0, 1)
        self.horizontalLayout_17.setStretch(1, 2)
        self.horizontalLayout_52.addLayout(self.horizontalLayout_17)
        self.horizontalLayout_52.setStretch(0, 1)
        self.verticalLayout_9.addLayout(self.horizontalLayout_52)
        self.line_32 = QtWidgets.QFrame(self.groupBox_5)
        self.line_32.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_32.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_32.setObjectName("line_32")
        self.verticalLayout_9.addWidget(self.line_32)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.horizontalLayout_22 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_22.setObjectName("horizontalLayout_22")
        self.label_21 = QtWidgets.QLabel(self.groupBox_5)
        self.label_21.setObjectName("label_21")
        self.horizontalLayout_22.addWidget(self.label_21)
        self.horizontalLayout_28 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_28.setObjectName("horizontalLayout_28")
        self.lineEdit = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_28.addWidget(self.lineEdit)
        self.horizontalLayout_22.addLayout(self.horizontalLayout_28)
        self.horizontalLayout_22.setStretch(0, 1)
        self.horizontalLayout_22.setStretch(1, 2)
        self.horizontalLayout_5.addLayout(self.horizontalLayout_22)
        self.horizontalLayout_5.setStretch(0, 1)
        self.verticalLayout_9.addLayout(self.horizontalLayout_5)
        self.line_33 = QtWidgets.QFrame(self.groupBox_5)
        self.line_33.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_33.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_33.setObjectName("line_33")
        self.verticalLayout_9.addWidget(self.line_33)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.horizontalLayout_29 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_29.setObjectName("horizontalLayout_29")
        self.label_2 = QtWidgets.QLabel(self.groupBox_5)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_29.addWidget(self.label_2)
        self.horizontalLayout_30 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_30.setObjectName("horizontalLayout_30")
        self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.horizontalLayout_30.addWidget(self.lineEdit_2)
        self.horizontalLayout_29.addLayout(self.horizontalLayout_30)
        self.horizontalLayout_29.setStretch(0, 1)
        self.horizontalLayout_29.setStretch(1, 2)
        self.horizontalLayout_6.addLayout(self.horizontalLayout_29)
        self.verticalLayout_9.addLayout(self.horizontalLayout_6)
        self.line_34 = QtWidgets.QFrame(self.groupBox_5)
        self.line_34.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_34.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_34.setObjectName("line_34")
        self.verticalLayout_9.addWidget(self.line_34)
        self.horizontalLayout_33 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_33.setObjectName("horizontalLayout_33")
        self.label_3 = QtWidgets.QLabel(self.groupBox_5)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_33.addWidget(self.label_3)
        self.horizontalLayout_34 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_34.setObjectName("horizontalLayout_34")
        self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox_5)
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.horizontalLayout_34.addWidget(self.lineEdit_3)
        self.horizontalLayout_33.addLayout(self.horizontalLayout_34)
        self.horizontalLayout_33.setStretch(0, 1)
        self.horizontalLayout_33.setStretch(1, 2)
        self.verticalLayout_9.addLayout(self.horizontalLayout_33)
        self.horizontalLayout_8.addWidget(self.groupBox_5)
        self.groupBox_7 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_7.setObjectName("groupBox_7")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_7)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_48 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_48.setObjectName("horizontalLayout_48")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_13 = QtWidgets.QLabel(self.groupBox_7)
        self.label_13.setObjectName("label_13")
        self.horizontalLayout_7.addWidget(self.label_13)
        self.horizontalLayout_31 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_31.setObjectName("horizontalLayout_31")
        self.comboBox_3 = QtWidgets.QComboBox(self.groupBox_7)
        self.comboBox_3.setObjectName("comboBox_3")
        self.horizontalLayout_31.addWidget(self.comboBox_3)
        self.horizontalLayout_7.addLayout(self.horizontalLayout_31)
        self.horizontalLayout_48.addLayout(self.horizontalLayout_7)
        self.verticalLayout_4.addLayout(self.horizontalLayout_48)
        self.line_35 = QtWidgets.QFrame(self.groupBox_7)
        self.line_35.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_35.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_35.setObjectName("line_35")
        self.verticalLayout_4.addWidget(self.line_35)
        self.horizontalLayout_49 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_49.setObjectName("horizontalLayout_49")
        self.horizontalLayout_32 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_32.setObjectName("horizontalLayout_32")
        self.label_14 = QtWidgets.QLabel(self.groupBox_7)
        self.label_14.setObjectName("label_14")
        self.horizontalLayout_32.addWidget(self.label_14)
        self.horizontalLayout_35 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_35.setObjectName("horizontalLayout_35")
        self.comboBox_4 = QtWidgets.QComboBox(self.groupBox_7)
        self.comboBox_4.setObjectName("comboBox_4")
        self.comboBox_4.addItem("")
        self.comboBox_4.addItem("")
        self.horizontalLayout_35.addWidget(self.comboBox_4)
        self.horizontalLayout_32.addLayout(self.horizontalLayout_35)
        self.horizontalLayout_49.addLayout(self.horizontalLayout_32)
        self.verticalLayout_4.addLayout(self.horizontalLayout_49)
        self.line_36 = QtWidgets.QFrame(self.groupBox_7)
        self.line_36.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_36.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_36.setObjectName("line_36")
        self.verticalLayout_4.addWidget(self.line_36)
        self.horizontalLayout_50 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_50.setObjectName("horizontalLayout_50")
        self.label_16 = QtWidgets.QLabel(self.groupBox_7)
        self.label_16.setObjectName("label_16")
        self.horizontalLayout_50.addWidget(self.label_16)
        self.pushButton_4 = QtWidgets.QPushButton(self.groupBox_7)
        self.pushButton_4.setObjectName("pushButton_4")
        self.horizontalLayout_50.addWidget(self.pushButton_4)
        self.verticalLayout_4.addLayout(self.horizontalLayout_50)
        self.line_37 = QtWidgets.QFrame(self.groupBox_7)
        self.line_37.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_37.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_37.setObjectName("line_37")
        self.verticalLayout_4.addWidget(self.line_37)
        self.horizontalLayout_18 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_18.setObjectName("horizontalLayout_18")
        self.pushButton_3 = QtWidgets.QPushButton(self.groupBox_7)
        self.pushButton_3.setObjectName("pushButton_3")
        self.horizontalLayout_18.addWidget(self.pushButton_3)
        self.pushButton_6 = QtWidgets.QPushButton(self.groupBox_7)
        self.pushButton_6.setObjectName("pushButton_6")
        self.horizontalLayout_18.addWidget(self.pushButton_6)
        self.verticalLayout_4.addLayout(self.horizontalLayout_18)
        self.horizontalLayout_8.addWidget(self.groupBox_7)
        self.horizontalLayout_8.setStretch(0, 3)
        self.horizontalLayout_8.setStretch(1, 1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_8)
        self.groupBox_6 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_6.setObjectName("groupBox_6")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_6)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.textEdit_2 = QtWidgets.QTextEdit(self.groupBox_6)
        self.textEdit_2.setObjectName("textEdit_2")
        self.gridLayout_4.addWidget(self.textEdit_2, 0, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_6)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 2)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.result = QtWidgets.QLabel(self.groupBox_3)
        self.result.setMinimumSize(QtCore.QSize(0, 138))
        self.result.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.result.setObjectName("result")
        self.gridLayout_2.addWidget(self.result, 0, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox_3)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
        self.horizontalLayout.addWidget(self.groupBox_3)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setSizeIncrement(QtCore.QSize(0, 0))
        self.groupBox.setBaseSize(QtCore.QSize(0, 160))
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_19 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_19.setObjectName("horizontalLayout_19")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.checkBox = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox.setObjectName("checkBox")
        self.horizontalLayout_11.addWidget(self.checkBox)
        self.label_19 = QtWidgets.QLabel(self.groupBox)
        self.label_19.setMinimumSize(QtCore.QSize(0, 22))
        self.label_19.setMaximumSize(QtCore.QSize(89, 22))
        self.label_19.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_19.setText("")
        self.label_19.setObjectName("label_19")
        self.horizontalLayout_11.addWidget(self.label_19)
        self.horizontalLayout_11.setStretch(1, 1)
        self.verticalLayout_5.addLayout(self.horizontalLayout_11)
        self.line_2 = QtWidgets.QFrame(self.groupBox)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.verticalLayout_5.addWidget(self.line_2)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.checkBox_2 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_2.setObjectName("checkBox_2")
        self.horizontalLayout_10.addWidget(self.checkBox_2)
        self.label_18 = QtWidgets.QLabel(self.groupBox)
        self.label_18.setMinimumSize(QtCore.QSize(0, 22))
        self.label_18.setMaximumSize(QtCore.QSize(89, 22))
        self.label_18.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_18.setText("")
        self.label_18.setObjectName("label_18")
        self.horizontalLayout_10.addWidget(self.label_18)
        self.horizontalLayout_10.setStretch(1, 1)
        self.verticalLayout_5.addLayout(self.horizontalLayout_10)
        self.line_3 = QtWidgets.QFrame(self.groupBox)
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.verticalLayout_5.addWidget(self.line_3)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.checkBox_3 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_3.setObjectName("checkBox_3")
        self.horizontalLayout_9.addWidget(self.checkBox_3)
        self.label_15 = QtWidgets.QLabel(self.groupBox)
        self.label_15.setMinimumSize(QtCore.QSize(0, 22))
        self.label_15.setMaximumSize(QtCore.QSize(89, 22))
        self.label_15.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_15.setText("")
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_9.addWidget(self.label_15)
        self.horizontalLayout_9.setStretch(1, 1)
        self.verticalLayout_5.addLayout(self.horizontalLayout_9)
        self.line_4 = QtWidgets.QFrame(self.groupBox)
        self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_4.setObjectName("line_4")
        self.verticalLayout_5.addWidget(self.line_4)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.checkBox_4 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_4.setText("")
        self.checkBox_4.setObjectName("checkBox_4")
        self.horizontalLayout_14.addWidget(self.checkBox_4)
        self.pushButton_5 = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_5.setMaximumSize(QtCore.QSize(16777215, 22))
        self.pushButton_5.setObjectName("pushButton_5")
        self.horizontalLayout_14.addWidget(self.pushButton_5)
        self.label_24 = QtWidgets.QLabel(self.groupBox)
        self.label_24.setMinimumSize(QtCore.QSize(0, 22))
        self.label_24.setMaximumSize(QtCore.QSize(89, 22))
        self.label_24.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_24.setText("")
        self.label_24.setObjectName("label_24")
        self.horizontalLayout_14.addWidget(self.label_24)
        self.horizontalLayout_14.setStretch(2, 1)
        self.verticalLayout_5.addLayout(self.horizontalLayout_14)
        self.line_5 = QtWidgets.QFrame(self.groupBox)
        self.line_5.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_5.setObjectName("line_5")
        self.verticalLayout_5.addWidget(self.line_5)
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.checkBox_7 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_7.setObjectName("checkBox_7")
        self.horizontalLayout_15.addWidget(self.checkBox_7)
        self.label_23 = QtWidgets.QLabel(self.groupBox)
        self.label_23.setMinimumSize(QtCore.QSize(0, 22))
        self.label_23.setMaximumSize(QtCore.QSize(89, 22))
        self.label_23.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_23.setText("")
        self.label_23.setObjectName("label_23")
        self.horizontalLayout_15.addWidget(self.label_23)
        self.horizontalLayout_15.setStretch(1, 1)
        self.verticalLayout_5.addLayout(self.horizontalLayout_15)
        self.line_14 = QtWidgets.QFrame(self.groupBox)
        self.line_14.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_14.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_14.setObjectName("line_14")
        self.verticalLayout_5.addWidget(self.line_14)
        self.horizontalLayout_53 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_53.setObjectName("horizontalLayout_53")
        self.checkBox_8 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_8.setObjectName("checkBox_8")
        self.horizontalLayout_53.addWidget(self.checkBox_8)
        self.label_53 = QtWidgets.QLabel(self.groupBox)
        self.label_53.setMinimumSize(QtCore.QSize(0, 22))
        self.label_53.setMaximumSize(QtCore.QSize(89, 22))
        self.label_53.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_53.setText("")
        self.label_53.setObjectName("label_53")
        self.horizontalLayout_53.addWidget(self.label_53)
        self.horizontalLayout_53.setStretch(1, 1)
        self.verticalLayout_5.addLayout(self.horizontalLayout_53)
        self.line_30 = QtWidgets.QFrame(self.groupBox)
        self.line_30.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_30.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_30.setObjectName("line_30")
        self.verticalLayout_5.addWidget(self.line_30)
        self.horizontalLayout_46 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_46.setObjectName("horizontalLayout_46")
        self.checkBox_11 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_11.setText("")
        self.checkBox_11.setObjectName("checkBox_11")
        self.horizontalLayout_46.addWidget(self.checkBox_11)
        self.pushButton_7 = QtWidgets.QPushButton(self.groupBox)
        self.pushButton_7.setMaximumSize(QtCore.QSize(16777215, 22))
        self.pushButton_7.setObjectName("pushButton_7")
        self.horizontalLayout_46.addWidget(self.pushButton_7)
        self.checkBox_5 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_5.setObjectName("checkBox_5")
        self.horizontalLayout_46.addWidget(self.checkBox_5)
        self.checkBox_21 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_21.setObjectName("checkBox_21")
        self.horizontalLayout_46.addWidget(self.checkBox_21)
        self.verticalLayout_5.addLayout(self.horizontalLayout_46)
        self.verticalLayout_5.setStretch(0, 1)
        self.verticalLayout_5.setStretch(2, 1)
        self.verticalLayout_5.setStretch(4, 1)
        self.verticalLayout_5.setStretch(6, 1)
        self.verticalLayout_5.setStretch(8, 1)
        self.verticalLayout_5.setStretch(10, 1)
        self.verticalLayout_5.setStretch(12, 1)
        self.horizontalLayout_3.addLayout(self.verticalLayout_5)
        self.line = QtWidgets.QFrame(self.groupBox)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_3.addWidget(self.line)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.checkBox_12 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_12.setMinimumSize(QtCore.QSize(0, 22))
        self.checkBox_12.setObjectName("checkBox_12")
        self.horizontalLayout_12.addWidget(self.checkBox_12)
        self.label_22 = QtWidgets.QLabel(self.groupBox)
        self.label_22.setMaximumSize(QtCore.QSize(89, 22))
        self.label_22.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_22.setText("")
        self.label_22.setObjectName("label_22")
        self.horizontalLayout_12.addWidget(self.label_22)
        self.horizontalLayout_12.setStretch(1, 1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_12)
        self.line_8 = QtWidgets.QFrame(self.groupBox)
        self.line_8.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_8.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_8.setObjectName("line_8")
        self.verticalLayout_6.addWidget(self.line_8)
        self.horizontalLayout_16 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_16.setObjectName("horizontalLayout_16")
        self.checkBox_13 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_13.setMinimumSize(QtCore.QSize(0, 22))
        self.checkBox_13.setObjectName("checkBox_13")
        self.horizontalLayout_16.addWidget(self.checkBox_13)
        self.label_25 = QtWidgets.QLabel(self.groupBox)
        self.label_25.setMaximumSize(QtCore.QSize(89, 22))
        self.label_25.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_25.setText("")
        self.label_25.setObjectName("label_25")
        self.horizontalLayout_16.addWidget(self.label_25)
        self.horizontalLayout_16.setStretch(1, 1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_16)
        self.line_9 = QtWidgets.QFrame(self.groupBox)
        self.line_9.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_9.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_9.setObjectName("line_9")
        self.verticalLayout_6.addWidget(self.line_9)
        self.horizontalLayout_26 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_26.setObjectName("horizontalLayout_26")
        self.checkBox_15 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_15.setMinimumSize(QtCore.QSize(0, 22))
        self.checkBox_15.setObjectName("checkBox_15")
        self.horizontalLayout_26.addWidget(self.checkBox_15)
        self.label_40 = QtWidgets.QLabel(self.groupBox)
        self.label_40.setMaximumSize(QtCore.QSize(89, 22))
        self.label_40.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_40.setText("")
        self.label_40.setObjectName("label_40")
        self.horizontalLayout_26.addWidget(self.label_40)
        self.horizontalLayout_26.setStretch(1, 1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_26)
        self.line_12 = QtWidgets.QFrame(self.groupBox)
        self.line_12.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_12.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_12.setObjectName("line_12")
        self.verticalLayout_6.addWidget(self.line_12)
        self.horizontalLayout_27 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_27.setObjectName("horizontalLayout_27")
        self.checkBox_17 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_17.setMinimumSize(QtCore.QSize(0, 22))
        self.checkBox_17.setObjectName("checkBox_17")
        self.horizontalLayout_27.addWidget(self.checkBox_17)
        self.label_52 = QtWidgets.QLabel(self.groupBox)
        self.label_52.setMaximumSize(QtCore.QSize(89, 22))
        self.label_52.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_52.setText("")
        self.label_52.setObjectName("label_52")
        self.horizontalLayout_27.addWidget(self.label_52)
        self.horizontalLayout_27.setStretch(1, 1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_27)
        self.line_11 = QtWidgets.QFrame(self.groupBox)
        self.line_11.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_11.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_11.setObjectName("line_11")
        self.verticalLayout_6.addWidget(self.line_11)
        self.horizontalLayout_56 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_56.setObjectName("horizontalLayout_56")
        self.checkBox_14 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_14.setMinimumSize(QtCore.QSize(0, 22))
        self.checkBox_14.setObjectName("checkBox_14")
        self.horizontalLayout_56.addWidget(self.checkBox_14)
        self.label_56 = QtWidgets.QLabel(self.groupBox)
        self.label_56.setMaximumSize(QtCore.QSize(89, 22))
        self.label_56.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_56.setText("")
        self.label_56.setObjectName("label_56")
        self.horizontalLayout_56.addWidget(self.label_56)
        self.horizontalLayout_56.setStretch(1, 1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_56)
        self.line_15 = QtWidgets.QFrame(self.groupBox)
        self.line_15.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_15.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_15.setObjectName("line_15")
        self.verticalLayout_6.addWidget(self.line_15)
        self.horizontalLayout_57 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_57.setObjectName("horizontalLayout_57")
        self.checkBox_20 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_20.setMinimumSize(QtCore.QSize(0, 22))
        self.checkBox_20.setObjectName("checkBox_20")
        self.horizontalLayout_57.addWidget(self.checkBox_20)
        self.label_57 = QtWidgets.QLabel(self.groupBox)
        self.label_57.setMaximumSize(QtCore.QSize(89, 22))
        self.label_57.setStyleSheet("background-color: rgb(169, 169, 169);border: 1px solid black;")
        self.label_57.setText("")
        self.label_57.setObjectName("label_57")
        self.horizontalLayout_57.addWidget(self.label_57)
        self.horizontalLayout_57.setStretch(1, 1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_57)
        self.line_31 = QtWidgets.QFrame(self.groupBox)
        self.line_31.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_31.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_31.setObjectName("line_31")
        self.verticalLayout_6.addWidget(self.line_31)
        self.horizontalLayout_47 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_47.setObjectName("horizontalLayout_47")
        self.checkBox_18 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_18.setMinimumSize(QtCore.QSize(0, 22))
        self.checkBox_18.setMaximumSize(QtCore.QSize(16777215, 22))
        self.checkBox_18.setObjectName("checkBox_18")
        self.horizontalLayout_47.addWidget(self.checkBox_18)
        self.checkBox_6 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_6.setObjectName("checkBox_6")
        self.horizontalLayout_47.addWidget(self.checkBox_6)
        self.checkBox_22 = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_22.setObjectName("checkBox_22")
        self.horizontalLayout_47.addWidget(self.checkBox_22)
        self.verticalLayout_6.addLayout(self.horizontalLayout_47)
        self.verticalLayout_6.setStretch(0, 1)
        self.verticalLayout_6.setStretch(2, 1)
        self.verticalLayout_6.setStretch(4, 1)
        self.verticalLayout_6.setStretch(6, 1)
        self.verticalLayout_6.setStretch(8, 1)
        self.verticalLayout_6.setStretch(10, 1)
        self.verticalLayout_6.setStretch(12, 1)
        self.horizontalLayout_3.addLayout(self.verticalLayout_6)
        self.horizontalLayout_3.setStretch(0, 1)
        self.horizontalLayout_3.setStretch(2, 1)
        self.horizontalLayout_19.addLayout(self.horizontalLayout_3)
        self.verticalLayout.addWidget(self.groupBox)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout_4.addWidget(self.pushButton_2)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout_4.addWidget(self.pushButton)
        self.pushButton_8 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_8.setObjectName("pushButton_8")
        self.horizontalLayout_4.addWidget(self.pushButton_8)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(1, 2)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.horizontalLayout_2.setStretch(0, 3)
        self.horizontalLayout_2.setStretch(1, 1)
        self.gridLayout_34.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.groupBox_5.setTitle(_translate("MainWindow", "设备数据："))
        self.label_20.setText(
            _translate("MainWindow", "<html><head/><body><p align=\"center\">设备类型：</p></body></html>"))
        self.comboBox_5.setItemText(0, _translate("MainWindow", "T5"))
        self.comboBox_5.setItemText(1, _translate("MainWindow", "DT1"))
        self.comboBox_5.setItemText(2, _translate("MainWindow", "T5_temple"))
        self.comboBox_5.setItemText(3, _translate("MainWindow", "T5_esp"))
        self.label_21.setText(
            _translate("MainWindow", "<html><head/><body><p align=\"center\">设备号：</p></body></html>"))
        self.label_2.setText(
            _translate("MainWindow", "<html><head/><body><p align=\"center\">ICCID  ：</p></body></html>"))
        self.label_3.setText(
            _translate("MainWindow", "<html><head/><body><p align=\"center\">信号值 ：</p></body></html>"))
        self.groupBox_7.setTitle(_translate("MainWindow", "串口设置："))
        self.label_13.setText(
            _translate("MainWindow", "<html><head/><body><p align=\"center\">串口选择：</p></body></html>"))
        self.label_14.setText(
            _translate("MainWindow", "<html><head/><body><p align=\"center\">波特率：</p></body></html>"))
        self.comboBox_4.setItemText(0, _translate("MainWindow", "115200"))
        self.comboBox_4.setItemText(1, _translate("MainWindow", "9600"))
        self.label_16.setText(
            _translate("MainWindow", "<html><head/><body><p align=\"center\">串口操作：</p></body></html>"))
        self.pushButton_4.setText(_translate("MainWindow", "打开串口"))
        self.pushButton_3.setText(_translate("MainWindow", "开始测试"))
        self.pushButton_6.setText(_translate("MainWindow", "关闭测试"))
        self.groupBox_6.setTitle(_translate("MainWindow", "串口数据："))
        self.groupBox_3.setTitle(_translate("MainWindow", "测试结果："))
        self.result.setText(_translate("MainWindow",
                                       "<html><head/><body><p align=\"center\"><span style=\" font-size:36pt; font-weight:600;\">TEST</span></p></body></html>"))
        self.label.setText(_translate("MainWindow", ""))
        self.groupBox.setTitle(_translate("MainWindow", "测试内容"))
        self.checkBox.setText(_translate("MainWindow", " 温湿度传感器："))
        self.checkBox_2.setText(_translate("MainWindow", "    SIM卡    ："))
        self.checkBox_3.setText(_translate("MainWindow", "     rtc     ："))
        self.pushButton_5.setText(_translate("MainWindow", "  蓝牙打印 ： "))
        self.checkBox_7.setText(_translate("MainWindow", "    按键1    ："))
        self.checkBox_8.setText(_translate("MainWindow", "    按键3    ："))
        self.pushButton_7.setText(_translate("MainWindow", "    蜂鸣器  ："))
        self.checkBox_5.setText(_translate("MainWindow", "响"))
        self.checkBox_21.setText(_translate("MainWindow", "不响"))
        self.checkBox_12.setText(_translate("MainWindow", " 温度传感器 ："))
        self.checkBox_13.setText(_translate("MainWindow", "    MQTT    ："))
        self.checkBox_15.setText(_translate("MainWindow", "    SD卡    ："))
        self.checkBox_17.setText(_translate("MainWindow", "   4G注网   ："))
        self.checkBox_14.setText(_translate("MainWindow", "    按键2   ："))
        self.checkBox_20.setText(_translate("MainWindow", "    按键4   ："))
        self.checkBox_18.setText(_translate("MainWindow", "     屏幕   ："))
        self.checkBox_6.setText(_translate("MainWindow", "亮"))
        self.checkBox_22.setText(_translate("MainWindow", "不亮"))
        self.pushButton_2.setText(_translate("MainWindow", "清除数据"))
        self.pushButton.setText(_translate("MainWindow", "二维码标签打印"))
        self.pushButton_8.setText(_translate("MainWindow", "标签回退"))

    # 实时更新串口
    def handle_SerialPort_signal(self, ports):
        current_text = self.comboBox_3.currentText()
        self.comboBox_3.clear()
        self.comboBox_3.addItems(ports)
        if current_text:
            index = self.comboBox_3.findText(current_text)
            if index >= 0:
                self.comboBox_3.setCurrentIndex(index)

    def setDevTestFun(self, device_type):  # 设置测试内容切换
        checkboxes_T5 = [
            self.checkBox, self.checkBox_15, self.checkBox_12,  # 温湿度传感器 SD卡 温度传感器
            self.checkBox_2, self.checkBox_17,  # SIM卡 4G注网 GPS self.checkBox_3,
            self.checkBox_7, self.checkBox_8, self.checkBox_14,  # KEY1 KEY3 KEY2
            self.checkBox_4, self.checkBox_11, self.checkBox_18,  # 蓝牙打印 蜂鸣器 屏幕
            self.checkBox_20, self.checkBox_13  # KEY4 MQTT
        ]
        checkboxes_T5_esp = [
            self.checkBox, self.checkBox_15, self.checkBox_12,  # 温湿度传感器 SD卡 温度传感器
            self.checkBox_2,self.checkBox_3, self.checkBox_17,  # SIM卡 4G注网 GPS self.checkBox_3,
            self.checkBox_7, self.checkBox_8, self.checkBox_14,  # KEY1 KEY3 KEY2
            self.checkBox_4, self.checkBox_11, self.checkBox_18,  # 蓝牙打印 蜂鸣器 屏幕
            self.checkBox_20, self.checkBox_13  # KEY4 MQTT
        ]
        checkboxes_T5_temple = [
            self.checkBox_15,  # SD卡
            self.checkBox_2, self.checkBox_17,  # SIM卡 4G注网
            self.checkBox_13  # KEY4 MQTT
        ]
        checkboxes_DT1 = [
            self.checkBox, self.checkBox_15, self.checkBox_2,  # 温湿度传感器 SD卡 SIM卡
            self.checkBox_17, self.checkBox_7, self.checkBox_13  # 4G注网 KEY1 MQTT
        ]
        for checkbox in checkboxes_T5:
            checkbox.setEnabled(True)
            checkbox.setChecked(False)
        device_checkbox_map = {
            "T5": checkboxes_T5,
            "T5_temple": checkboxes_T5_temple,
            "DT1": checkboxes_DT1,
            "T5_esp": checkboxes_T5_esp,
        }

        checkboxes = device_checkbox_map.get(device_type)
        if checkboxes:
            for checkbox in checkboxes:
                checkbox.setChecked(True)
                checkbox.setEnabled(False)
        else:
            # 处理未匹配的device_type情况，比如清空或默认操作
            pass

    def jyuiInit(self):  # 初始化界面内容
        # # global qrcodePrintFlag  # 声明使用全局变量
        # main.qrcodePrintFlag=0
        labels = [
            self.result, self.label_19, self.label_40, self.label_22, self.label_18,
            self.label_52, self.label_15, self.label_24, self.label_23,
            self.label_56, self.label_53, self.label_57, self.label_25
        ]
        for i, label in enumerate(labels):
            label.setStyleSheet("background-color: rgb(169, 169, 169); border: 1px solid black;")
        self.textEdit_2.clear()  # 清除文本
        self.lineEdit.clear()  # 清除文本
        self.lineEdit_2.clear()  # 清除文本
        self.lineEdit_3.clear()  # 清除文本
        result_text = """<html><head/><body><p align="center"><span style="font-size:36pt; font-weight:600;">TEST</span></p></body></html>"""
        self.result.setText(result_text)
        self.checkBox_5.setChecked(False)
        self.checkBox_6.setChecked(False)
        self.checkBox_21.setChecked(False)
        self.checkBox_22.setChecked(False)

    def toggleBeepCheckBoxes(self):  # 检查哪个CheckBox被选中，并使另一个CheckBox处于未选中状态
        sender = self.sender()
        if sender.isChecked():
            if sender == self.checkBox_5:
                self.checkBox_21.setChecked(False)
            elif sender == self.checkBox_21:
                self.checkBox_5.setChecked(False)

    def toggleOledCheckBoxes(self):  # 检查哪个CheckBox被选中，并使另一个CheckBox处于未选中状态
        sender = self.sender()
        if sender.isChecked():
            if sender == self.checkBox_22:
                self.checkBox_6.setChecked(False)
            elif sender == self.checkBox_6:
                self.checkBox_22.setChecked(False)
